package com.tornado.system.model;

import java.util.Date;







public class Orders {
    @Override
	public String toString() {
		return "Order [id=" + id + ", orderId=" + orderId + ", userId="
				+ userId + ", goodsId=" + goodsId + ", createtime="
				+ createtime + ", totalPrice=" + totalPrice + ", address="
				+ address + "]";
	}

	public Orders(String orderId, Integer userId, Integer goodsId,
			Date createtime, Double totalPrice, String address) {
		super();
		this.orderId = orderId;
		this.userId = userId;
		this.goodsId = goodsId;
		this.createtime = createtime;
		this.totalPrice = totalPrice;
		this.address = address;
	}
	

	public Orders() {
		super();
		// TODO Auto-generated constructor stub
	}

	public Orders(Integer id, String orderId, Integer userId, Integer goodsId,
			Date createtime, Double totalPrice, String address) {
		super();
		this.id = id;
		this.orderId = orderId;
		this.userId = userId;
		this.goodsId = goodsId;
		this.createtime = createtime;
		this.totalPrice = totalPrice;
		this.address = address;
	}


	private Integer id;

    private String orderId;

    private Integer userId;

    private Integer goodsId;

    private Date createtime;

    private Double totalPrice;

    private String address;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId == null ? null : orderId.trim();
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(Integer goodsId) {
        this.goodsId = goodsId;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public Double getTotalPrice() {
        return totalPrice;
    }

    public void setTotalPrice(Double totalPrice) {
        this.totalPrice = totalPrice;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address == null ? null : address.trim();
    }
}